package br.com.abril.prevision;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface ExecutivePrevisionRepository 
				extends JpaRepository<ExecutivePrevision, Long>
					  , JpaSpecificationExecutor<ExecutivePrevision> {
	
	List<ExecutivePrevision> findByWalletAndDataReservaIsNotNullOrderByDataReservaDesc (String wallet);

	List<ExecutivePrevision> findByJobExecutionStatus(String jobExecutionStatus, Pageable pageable);	
	
}

